home *** CD-ROM | disk | FTP | other *** search
/ ShareWare OnLine 2 / ShareWare OnLine Volume 2 (CMS Software)(1993).iso / archiver / mta_vf35.zip / MTA__BAT.EXE / MTACOMPN.BAT < prev    next >
DOS Batch File  |  1989-12-17  |  2KB  |  41 lines

  1. ECHO OFF
  2. REM ********************************************************************
  3. REM * This is common batch-file, used after compression is done. You   *
  4. REM * are placed in the directory where the new compressed files is;   *
  5. REM ********************************************************************
  6. REM * In MTA's ExitAfterCompression option, you can pass, besides your *
  7. REM * own, three variables to this batch. MTA will replace these       *
  8. REM * variables with constants and will call this batch.               *
  9. REM *                                                                  *
  10. REM * The variables you can supply in ExitAfterCompression (optional)  *
  11. REM * will be replaced by:                                             *
  12. REM *                                                                  *
  13. REM * %1  : Relative directory containing the compressed file. This    *
  14. REM *       parameter is obsolete, because MTA will switch to this     *
  15. REM *       directory, just before this batch is called, but is still  *
  16. REM *       available because of compatibility with previous versions  *
  17. REM * %2  : New filename (not extension) of the NEW compressed file    *
  18. REM *       created by MTA;                                            *
  19. REM * %3  : New extension (no point) of the NEW compressed file        *
  20. REM *       created by MTA;                                            *
  21. REM ********************************************************************
  22. REM
  23. REM ********************************************************************
  24. REM * WARNING: C:\ZIP is a temporary directory MTA does not use at all *
  25. REM *          so substitute one of your own (e.g. the root)  !!!!!!!! *
  26. REM ********************************************************************
  27. REM
  28. REM --------------------------------------------------------------------
  29. REM - This example will:                                               -
  30. REM - = Create a self extracting .EXE file of all files you convert    -
  31. REM -   (assumed you convert to LHarc, otherwise edit the batch to     -
  32. REM -   your own needs;                                                -
  33. REM - = Delete the original compressed (.LZH) file and leave the .EXE  -
  34. REM -   file (MTA will detect this)                                    -
  35. REM --------------------------------------------------------------------
  36. REM
  37. REM Create the SFX and delete the old LZH file
  38. REM
  39. LHARC s /m- /x %2.%3
  40. DEL %2.%3
  41.